package com.example.support.wanquanpay;

public enum WanquanBank {

	gongshang("102100099996", "工商银行"),
	zhongguo("104100000004", "中国银行"),
	jianshe("105100000017", "建设银行"),
	jiaotong("301290000007", "交通银行"),
	guangfa("306581000003", "广发银行"),
	zhongxin("302100011000", "中信银行"),
	xingye("309391000011", "兴业银行"),
	pingan("307584007998", "平安银行"),
	pufa("310290000013", "浦发银行"),
	youchu("403100000004", "邮储银行"),
	guangda("303100000006", "光大银行"),
	nongye("103100000026", "农业银行"),
	zhaoshang("308584000013", "招商银行"),
	minsheng("305100000013", "民生银行"),
	shanghai("325290000012", "上海银行"),
	beijing("313100000013", "北京银行"),
	huaxia("304100040000", "华夏银行");

	public final String bankNo;
	public final String bankName
	;

	WanquanBank(String bankNo, String bankName) {
		this.bankNo = bankNo;
		this.bankName = bankName;
	}

	public static WanquanBank ofBankName(String bankName) {
		for (WanquanBank t : WanquanBank.values()) {
			if (t.bankName.equals(bankName)) {
				return t;
			}
		}
		throw new IllegalStateException("Invalid bankName: " + bankName);
	}

}
